<?php
class Usuarios_Form_RenovarClave extends Form_Base{
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		$domConfig = Zend_Registry::get('domConfig');
		
		$this->setName('renovar');
		$this->setMethod("post");
		$this->setAttrib("class","highlight");
		
		$codusuario = new Zend_Form_Element_Hidden("codusuario");
		
		$clave = new Zend_Form_Element_Password ( 'clave' );
		$clave->setLabel( 'Contraseña nueva :' );
		$clave->setRequired ( true );
		$clave->setAttrib("maxlength","16");
		$clave->addValidator(new Zend_Validate_StringLength(6));
		$clave->addValidator(new App_Validate_Password());
		
		$reclave = new Zend_Form_Element_Password ( 'reclave' );
		$reclave->setLabel( 'Re-contraseña nueva :' );
		$reclave->setRequired ( true );
		$reclave->setAttrib("maxlength","16");
		
		$submit = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$submit->setValue('Guardar');
		$submit->setLabel("Guardar");
		$submit->setAttrib("class", "iceCmdBtn");
		
		$this->addElements ( array ( $codusuario,
									 $clave,
									 $reclave,
									 $submit
								 ) );
		
		$this->loadTableDecorators();
	}

}